home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / indent-1.8 / README.mpw < prev    next >
Text File  |  1994-01-19  |  3KB  |  100 lines

  1. GNU indent 1.8
  2. MPW port by Franklin Chen <chen@adi.com>
  3.     
  4. Notes
  5. -----
  6. UserStartup•Indent provides sample settings for INDENT_PREFDIR,
  7. SIMPLE_BACKUP_SUFFIX, and VERSION_CONTROL (the last two will also apply to
  8. other programs using emacs-style backups, such as Patch).
  9.  
  10. Indent.Help contains help information.  It's huge and really ugly, but there
  11. it is.
  12.  
  13. To install the tool, help, and startup, just enter
  14.     BuildProgram install_already_built
  15.     
  16. Built with gC -mc68020.  Note that GUSI is used for dirent and stat.
  17.  
  18. Some adjustments will need to be made for a THINK C port.
  19.  
  20.  
  21. Changes
  22. -------
  23. (All the changes up through 1.8)
  24. (Wed, Jan 19, 1994)
  25.  
  26. sys.h
  27.     Added a section for macintosh:
  28.         defined USG
  29.         defined PROFILE_FORMAT correctly
  30.         (MPW) included <CursorCtl.h>; declared fsetfileinfo()
  31.         included <fcntl.h>
  32.     ### included <string.h>, <stdlib.h>
  33.     ### don't redeclare malloc(), realloc()
  34.     
  35. args.c, backup.c, globs.c, indent.c
  36.     ### (not changed) should replace fprintf...exit by call to GNU error()
  37.  
  38. args.c
  39.     made INDENT_PROFILE "Indent Prefs"
  40.     ### (not changed) should make pro[], option_conversions[] static
  41.     set_profile():
  42.         Mac style paths
  43.         (MPW) searches in INDENT_PREFDIR instead of HOME
  44.     
  45. backup.c
  46.     *** Note that this is where dirent is needed
  47.     (MPW) initialize_backups():  flushed stderr after message
  48.     max_version():
  49.         used Mac directory delimiter ':' and current directory ":"
  50.             instead of '/' and "."
  51.     ### (not changed) should remove extern declaration of getenv()
  52.         since in <stdlib.h>
  53.     make_backup():
  54.         ifdef'ed creat() to one argument
  55.         (MPW) fsetfileinfo() to set type and creator of backup file
  56.  
  57. globs.c
  58.     ### (not changed) should use (void *) and size_t
  59.     ### (not changed) could provide MPW style messages
  60.  
  61. indent.c
  62.     [prev] (MPW) spin the cursor
  63.     indent():  provided Mac directory separator ':'
  64.     ### (not changed) usage():  should be static
  65.         ### (not changed) fix [-o outfile ]
  66.         (MPW) print MPW style
  67.     ### (not changed) correct spelling error "Uset" to "Use"
  68.     (MPW) used fsetfileinfo() to set type and creator of output files
  69.     
  70. io.c
  71.     (NB) includes <sys/types.h> and <sys/stat.h>
  72.     *** read_file():  uses stat
  73.     ### (not changed) fill_buffer():  misspelling "procede"
  74.     ### read_file():  ifdef'ed call of open() to two args
  75.     ### (not changed) diag():  should use <stdarg.h>
  76.         (MPW) MPW style message
  77.     ### (not changed) dump_debug_line() doesn't seem to be used anywhere!
  78.     ### (not changed) pad_output() should be static
  79.     ### (not changed) sys_error() should be replaced with GNU error
  80.     
  81. lexi.c
  82.     [previous ports] (MPW) spin the cursor
  83.     ### (not changed) addkey():  should be void
  84.     ### is_reserved():  should be static
  85.     ### (not changed) chartype[] should be static
  86.     ### (not changed) chartype[] should be 256 instead of 128 in size,
  87.         to account for 8-bit extended ASCII
  88.     ### (not changed) should cast to (unsigned char) before accessing
  89.         array chartype[] if 8-bit
  90.         
  91. parse.c
  92.     ### (not changed) reduce():  should be static void
  93.  
  94. Indent.r
  95.     Updated
  96. Indent.Help
  97.     Updated
  98. UserStartup•Indent
  99.     Updated
  100.